package top.infopub.job.bpa.service.impl;

import java.math.BigDecimal;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import top.infopub.generic.GenericDao;
import top.infopub.generic.GenericServiceImpl;
import top.infopub.job.bpa.dao.OtherSureDao;
import top.infopub.model.bpa.OtherSure;
import top.infopub.job.bpa.service.OtherSureService;

@Service
public class OtherSureServiceImpl extends GenericServiceImpl<OtherSure, String> implements
		OtherSureService {

	@Autowired
	private OtherSureDao otherSureDao;
	
	@Override
	public GenericDao<OtherSure, String> getDao() {
		return otherSureDao;
	}

    @Override
    public BigDecimal selectMonthSureAmount32(Map<String, Object> where) {
        BigDecimal rs = otherSureDao.selectMonthSureAmount32(where);
        if(null == rs){
            rs = BigDecimal.ZERO;
        }
        return rs;
    }

    @Override
    public BigDecimal selectMonthSureAmount33(Map<String, Object> where) {
        BigDecimal rs = otherSureDao.selectMonthSureAmount33(where);
        if(null == rs){
            rs = BigDecimal.ZERO;
        }
        return rs;
    }

}